<%@ page import="edu.auctionmart.Item" %>

<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>AuctionMart<g:layoutTitle default="Welcome" /></title>
		<nav:resources override="true"/>
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
		<link rel="stylesheet" href="<g:createLinkTo dir='css' file='auctionmart.css'/>" />
		<g:layoutHead/>
		<g:javascript library="jquery" plugin="jquery"/>
		<r:require module="jquery"/>
		<r:layoutResources />
	</head>
	<body>
		<div>		
			<div id="hd">
				<div id="logo">
					<a href="<g:createLinkTo dir="/" />">
						<img id="logo" src="${createLinkTo(dir: 'images', file: 'logo.png')}" alt="auctionmart logo" /> 
					</a>
				</div>
				<div id="login">
					<g:isLoggedIn>
		     			Welcome, ${loggedInUserInfo(field:'username')} (<g:link controller="logout" action="index" id="3">Logout</g:link>)
		     			<div id="tabbar">
		     				<nav:render group="tabs" />
		     			</div>
		            </g:isLoggedIn>
		            <g:isNotLoggedIn>
		            	<g:link controller="login" action="index" id="1">Login</g:link>
		            	<g:link controller="user" action="create" id="2">Register</g:link>
		            </g:isNotLoggedIn>
	        	</div>		
			</div>
		</div>

		<div id="bd">
			<g:layoutBody />
		</div>
		<div id="ft">
			<div id="footerText">
				AuctionMart - Online Local Auctioning on Grails
			</div>
		</div>
		<r:layoutResources />
	</body>
</html>